package cn.thr.ymcc.client;

import cn.thr.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "service-course",fallbackFactory = CourseUserLearnClientFallbackFactory.class)
public interface CourseUserLearnClient {
    /**
     * 根据当前登录用户id和当前课程id查询购买记录
     * @param loginId
     * @param courseId
     * @return
     */
    @GetMapping("/courseUserLearn/CourseUserLearnController/{loginId}/{courseId}")
    JsonResult CourseUserLearnController(@PathVariable("loginId")Long loginId,
                                                @PathVariable("courseId")Long courseId);

}
